#include "widget.h"
#include "ui_widget.h"
#include<QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->comboBox->addItem("奔驰");
    ui->comboBox->addItem("火车");
    ui->spinBox->setValue(1);
    ui->spinBox->setMaximum(10);
    ui->spinBox->setMinimum(1);

    ui->comboBox_2->addItem("富贵园");
    ui->comboBox_2->addItem("碧桂园");
    ui->spinBox_2->setValue(1);
    ui->spinBox_2->setMinimum(1);
    ui->spinBox_2->setMaximum(10);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug()<<ui->comboBox->currentText()
           <<" "<<ui->spinBox->value()
          <<ui->comboBox_2->currentText()
         <<" "<<ui->spinBox_2->value();
}
